package com.tlsy.commerce.model;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.math.BigDecimal;

/**
 * 产品
 * @author Tlsy
 * @version commerce 0.0.1
 * @date 2017/4/10  16:26
 */
@MappedSuperclass
@Getter
@Setter
public  abstract class Product extends IdEntity{
    private static final long serialVersionUID = 6910042454304592007L;

    /**
     * 商品价格
     */
    @Column(name = "price")
    private BigDecimal price;

    /**
     * 商品描述
     */
    @Column(name = "description")
    private String description;

    /**
     * 商品数量或者库存
     */
    @Column(name = "count")
    private int count;


    /**
     * 商品按钮图片的url
     */
    @Column(name = "iconUrl")
    private String iconUrl;

    /**
     * 若商品有视频介绍，视频的url地址
     */
    @Column(name = "videoUrl")
    private String videoUrl;

    /**
     * 商品的图片url
     */
    @Column(name = "imgUrl")
    private String imgUrl;
}
